<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Job extends Model
{
    const EDUCATION_NAME = [
        '不限', '大专', '本科', '硕士/研究生', '博士/研究生',
    ];

    const SEX_NAME = [
        '男', '女', '不限'
    ];

    const SCHOOL_NAME = [
        '不限', '985/211',
    ];

    protected $table = 'job';

    protected $dateFormat = 'U';

    protected $guarded = [];

    public function project()
    {
        return $this->belongsTo(Project::class, 'project_id', 'id');
    }
}
